.housing-agenty-section {
    background-color: #ffffff;
    color: #000000;
    padding: 120px 0;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.housing-agenty-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.agenty-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

.agenty-main-title {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 0.9;
    color: #333;
    margin: 0;
}

.agenty-badge-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
}

.agenty-badge-circle {
    width: 100%;
    height: 100%;
    animation: rotateBadge 15s linear infinite;
}

.agenty-badge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.agenty-badge-center i {
    color: #fff;
    font-size: 20px;
    transform: rotate(-15deg);
}

@keyframes rotateBadge {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.agenty-list {
    margin-top: 50px;
}

.agenty-item {
    border-top: 1px solid #e0e0e0;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    transition: background 0.3s ease;
}

.agenty-item:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.agenty-item-content {
    flex-grow: 1;
}

.agenty-item-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.agenty-item-title {
    font-size: clamp(30px, 4vw, 55px);
    font-weight: 700;
    letter-spacing: -1px;
    color: #000;
    margin: 0;
}

.agenty-number-box {
    background-color: #000;
    color: #fff;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: 800;
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.agenty-item:hover .agenty-number-box {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.item-01 .agenty-number-box {
    margin-right: 160px;
}

.item-02 .agenty-number-box {
    margin-right: 80px;
}

.item-03 .agenty-number-box {
    margin-right: 0px;
}

@media (max-width: 1200px) {
    .agenty-main-title {
        font-size: 10vw;
    }

    .agenty-number-box {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .item-01 .agenty-number-box {
        margin-right: 120px;
    }

    .item-02 .agenty-number-box {
        margin-right: 60px;
    }
}

@media (max-width: 768px) {
    .housing-agenty-section {
        padding: 60px 0;
    }

    .housing-agenty-container {
        padding: 0 10px;
    }

    .agenty-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    .agenty-main-title {
        font-size: 36px;
        letter-spacing: -2px;
        text-align: left;
    }

    .agenty-badge-wrapper {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .agenty-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        width: 95vw;
        margin-left: auto;
        margin-right: auto;
        padding: 20px 15px;
    }

    .agenty-item-title {
        max-width: 70vw;
    }

    .agenty-number-box {
        align-self: flex-end;
        margin-right: 0;
        width: 50px;
        height: 50px;
        font-size: 20px;
        flex-shrink: 0;
    }
}